<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm',array(
		'id'=>'user-form',
		'enableAjaxValidation'=>false,
)); ?>

<p class="help-block">
	<?php echo Yii::t('FieldsMessage', 'required_fields')?>
</p>
<br />

<?php echo $form->errorSummary($model); ?>

<?php echo $form->textFieldRow($model,'name',array('class'=>'span5','maxlength'=>250)); ?>

<?php echo $form->textFieldRow($model,'username',array('class'=>'span5','maxlength'=>45)); ?>

<div class="row" style="margin-left: 0px;">
	<div class="span" style="margin-left: 0px;">
		<?php echo $form->passwordFieldRow($model,'password',array('class'=>'span2','maxlength'=>45)); ?>
	</div>
	<div class="span" style="margin-left: 30px;">
		<?php echo $form->passwordFieldRow($model,'repeat_password',array('class'=>'span2','maxlength'=>45)); ?>
	</div>
</div>
<?php echo $form->textFieldRow($model,'email',array('class'=>'span5','maxlength'=>250)); ?>

<div class="form-actions" align="center">
	<?php $this->widget('bootstrap.widgets.TbButton', array(
			'buttonType'=>'submit',
			'type'=>'primary',
			'label'=>$model->isNewRecord ? 'Cadastrar' : 'Salvar',
		)); ?>
</div>

<?php $this->endWidget(); ?>
